import { HTTP } from '../utils/httpRequestUtil'
import URL from './api'
export default {
  //市场机会列表
  getMarketList (params, cb) {
    HTTP.post(URL.getMarketList, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //市场机会导出
  marketListExportExcel (params, cb) {
    HTTP.post(URL.marketListExportExcel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //市场机会详情
  getMarketInfoById (params, cb) {
    HTTP.post(URL.getMarketInfoById, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //市场机会评审保存与更新 
  saveOrUpdateReview (params, cb) {
    HTTP.post(URL.saveOrUpdateReview, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //同心圆取号 
  offerNumber (params, cb) {
    HTTP.post(URL.offerNumber, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //项目列表
  getProjectList (params, cb) {
    HTTP.post(URL.getProjectList, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //获取项目详情
  getProjectInfoById (params, cb) {
    HTTP.post(URL.getProjectInfoById, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //项目编辑保存
  updateProjectInfoById (params, cb) {
    HTTP.post(URL.updateProjectInfoById, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //项目新增保存
  addProjectInfo (params, cb) {
    HTTP.post(URL.addProjectInfo, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //项目删除
  removeProjectInfo (params, cb) {
    HTTP.post(URL.removeProjectInfo, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //获取项目承揽详情
  getProjectUndertakeInfoById (params, cb) {
    HTTP.post(URL.getProjectUndertakeInfoById, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //承揽-组建承揽团队
  saveProjectUndertakeTeam (params, cb) {
    HTTP.post(URL.saveProjectUndertakeTeam, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //承揽-项目承揽评审
  saveProjectUndertakeReview (params, cb) {
    HTTP.post(URL.saveProjectUndertakeReview, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //承揽-承揽阶段WBS及预算申请
  saveProjectUndertakeWbs (params, cb) {
    HTTP.post(URL.saveProjectUndertakeWbs, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //承揽-主任室决策
  saveProjectUndertakeDirectorMaking (params, cb) {
    HTTP.post(URL.saveProjectUndertakeDirectorMaking, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //承揽-投标报价
  saveProjectUndertakeTenderOffer (params, cb) {
    HTTP.post(URL.saveProjectUndertakeTenderOffer, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //承揽-合同推荐
  saveProjectUndertakeHt (params, cb) {
    HTTP.post(URL.saveProjectUndertakeHt, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },

  //获取项目承揽详情
  getProjectImplementationInfoById (params, cb) {
    HTTP.post(URL.getProjectImplementationInfoById, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },

  //实施-组建实施团队
  saveprojectImplementationTeam (params, cb) {
    HTTP.post(URL.saveprojectImplementationTeam, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-项目属性认定
  saveprojectImplementationOption (params, cb) {
    HTTP.post(URL.saveprojectImplementationOption, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-实施阶段WBS及预算申请
  saveprojectImplementationWbs (params, cb) {
    HTTP.post(URL.saveprojectImplementationWbs, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-项目执行
  saveprojectImplementationImplement (params, cb) {
    HTTP.post(URL.saveprojectImplementationImplement, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-合同收款
  saveprojectImplementationSummaryInfo (params, cb) {
    HTTP.post(URL.saveprojectImplementationSummaryInfo, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-项目总结
  saveprojectImplementationSummary (params, cb) {
    HTTP.post(URL.saveprojectImplementationSummary, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-项目导入
  projectInfoImportFromExcel (params, cb) {
    HTTP.post(URL.projectInfoImportFromExcel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-项目导出
  projectInfoExportExcel (params, cb) {
    HTTP.post(URL.projectInfoExportExcel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //实施-项目下载导入模板
  projectInfoGetTemplate (params, cb) {
    HTTP.post(URL.projectInfoGetTemplate, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },

  //通知商务经理
  projectnotifyBusiness (params, cb) {
    HTTP.post(URL.projectnotifyBusiness, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },


  
}